package com.ybxx.asset.model;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.apache.commons.lang.StringUtils;

import com.ybxx.core.model.BaseModel;

@Entity
@Table(name="tbl_asset_housingbuilding")
public class HousingBuilding extends BaseModel {
	@Id
	private String hbid;
	@ManyToOne(targetEntity=Company.class,fetch=FetchType.LAZY)
	@JoinColumn(name="cid",referencedColumnName="cid") 
	private Company company;
	private String fwzl;
	private String bancode;
	private String buildarea;
	private String roomnum;
	private String layer;
	private String structlayer;
	private String buildaddr;
	private String buildmonth;
	private String price;
	private String resetprice;
	private String mdept;
	private String content;
	public String getHbid() {
		return hbid;
	}
	public void setHbid(String hbid) {
		this.hbid = hbid;
	}
	public Company getCompany() {
		return company;
	}
	public void setCompany(Company company) {
		this.company = company;
	}
	public String getFwzl() {
		return fwzl;
	}
	public void setFwzl(String fwzl) {
		this.fwzl = fwzl;
	}
	public String getBancode() {
		return bancode;
	}
	public void setBancode(String bancode) {
		this.bancode = bancode;
	}
	public String getBuildarea() {
		return buildarea;
	}
	public void setBuildarea(String buildarea) {
		if(StringUtils.isNotEmpty(buildarea)){
			this.buildarea = buildarea;
		}
	}
	public String getRoomnum() {
		return roomnum;
	}
	public void setRoomnum(String roomnum) {
		if(StringUtils.isNotEmpty(roomnum)){
			this.roomnum = roomnum;
		}
	}
	public String getLayer() {
		return layer;
	}
	public void setLayer(String layer) {
		if(StringUtils.isNotEmpty(layer)){
			this.layer = layer;
		}
	}
	public String getStructlayer() {
		return structlayer;
	}
	public void setStructlayer(String structlayer) {
		this.structlayer = structlayer;
	}
	public String getBuildaddr() {
		return buildaddr;
	}
	public void setBuildaddr(String buildaddr) {
		this.buildaddr = buildaddr;
	}
	public String getBuildmonth() {
		return buildmonth;
	}
	public void setBuildmonth(String buildmonth) {
		this.buildmonth = buildmonth;
	}
	public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		if(StringUtils.isNotEmpty(price)){
			this.price = price;
		}
	}
	public String getResetprice() {
		return resetprice;
	}
	public void setResetprice(String resetprice) {
		if(StringUtils.isNotEmpty(resetprice)){
			this.resetprice = resetprice;
		}
	}
	public String getMdept() {
		return mdept;
	}
	public void setMdept(String mdept) {
		this.mdept = mdept;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
}
